import request from '@/sheep/request';

export default {
  // 获得基本信息
  getClassInfo: (params) => {
    return request({
      url: '/member/class/get-by-mgr',
      method: 'GET',
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    });
  },
  // 获取班级列表
  getClassList: (params) => {
    return request({
      url: '/member/class/list-by-mgr',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
  // 获取班级列表
  getKbDetail: (params) => {
    return request({
      url: '/member/course-day-record/get-detail',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
  // 上课记录
  getSkList: (params) => {
    return request({
      url: '/member/course-day-record/page-by-student',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
  //修改上课状态
  updateStatus: (data) => {
    return request({
      url: '/member/courseRecord/update',
      method: 'PUT',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
};